# frozen_string_literal: true

{{#generated_src_warning}}
{{generated_src_warning}}
{{/generated_src_warning}}
Gem::Specification.new do |spec|

  spec.name          = '{{gem_name}}'
  spec.version       = File.read(File.expand_path('../VERSION', __FILE__)).strip
  spec.summary       = '{{summary}}'
  spec.description   = '{{description}}'
  spec.author        = '{{author}}'
  spec.homepage      = '{{homepage}}'
  spec.license       = 'Apache-2.0'
  spec.email         = ['{{email}}']
  spec.require_paths = ['lib']
  spec.files         = Dir{{{files}}}

  {{#metadata}}
  spec.metadata = {
    'source_code_uri' => '{{code_uri}}',
    'changelog_uri'   => '{{code_uri}}/CHANGELOG.md'
  }

  {{/metadata}}
  {{#dependencies}}
  spec.add_dependency({{{gem_version}}})
  {{/dependencies}}

  spec.required_ruby_version = '>= 2.7'
  {{#deprecated?}}
  spec.post_install_message = '*** {{gem_name}} is deprecated ***'
  {{/deprecated?}}
end
